package main

import (
	"log"
	"net"
	"time"
)

func main() {
	dial, err := net.Dial("tcp", ":8088")
	if err != nil {
		panic(err)
	}

	conn := dial.(*net.TCPConn)

	err = conn.SetWriteBuffer(4)
	err = conn.SetReadBuffer(4)

	for i := 0; i < 10; i++ {
		str := "hello"
		write, err := conn.Write([]byte(str))
		if err != nil {
			panic(err)
		}
		log.Print(write)

		time.Sleep(time.Second)
	}

}
